Berry

@Serializable
data class Berry(val id: Int, val name: String, val growthTime: Int, val maxHarvest: Int, val naturalGiftPower: Int, val size: Int, val smoothness: Int, val soilDryness: Int, val firmness: Handle.Named<BerryFirmness>, val flavors: List<BerryFlavorMap>, val item: Handle.Named<Item>, val naturalGiftType: Handle.Named<Type>) : NamedModel(source)

Berries are small fruits that can provide HP and status condition restoration, stat enhancement, and even damage negation when eaten by Pokémon. See: https://pokeapi.co/docs/v2#berries

Parameters

id

The identifier for this resource.

name

The name for this resource.

growthTime

Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked.

maxHarvest

The maximum number of these berries that can grow on one tree in Generation IV.

naturalGiftPower

The power of the move "Natural Gift" when used with this Berry.

size

The size of this Berry, in millimeters.

smoothness

The smoothness of this Berry, used in making Pokéblocks or Poffins.

soilDryness

The speed at which this Berry dries out the soil as it grows. A higher rate means the soil dries more quickly.

firmness

The firmness of this berry, used in making Pokéblocks or Poffins.

flavors

A list of references to each flavor a berry can have and the potency of each of those flavors in regard to this berry.

item

Berries are actually items. This is a reference to the item specific data for this berry.

naturalGiftType

The type inherited by "Natural Gift" when used with this Berry.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, growthTime: Int, maxHarvest: Int, naturalGiftPower: Int, size: Int, smoothness: Int, soilDryness: Int, firmness: Handle.Named<BerryFirmness>, flavors: List<BerryFlavorMap>, item: Handle.Named<Item>, naturalGiftType: Handle.Named<Type>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard
Link copied to clipboard